package com.kaoshi.T17;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/4/7 13:48
 * @description
 */
public class Demo {
    public static String jiami(String str){
        char[] chars = str.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            chars[i] = (char)(chars[i]+5);
        }
        String jm = "";

        for (char aChar : chars) {
            jm = jm+aChar;
        }
        return jm;
    }

    public static String jiemi(String str){
        char[] chars = str.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            chars[i] = (char)(chars[i]-5);
        }
        String jm = "";

        for (char aChar : chars) {
            jm = jm+aChar;
        }
        return jm;
    }
}
